package com.cn.ycy.spi;

import java.util.ServiceLoader;

public class SpiTest {

  public static void main(String[] args) {
    System.out.println("开始寻找 Search接口的实现");
    //调用方代码
    ServiceLoader<Search> load = ServiceLoader.load(Search.class);
    for (Search u : load) {
      u.Spi();
    }
  }

}
